<!DOCTYPE html>

<html>
  
  <head>
     <title> Zad 1 </title>
  </head>
  
<body>
<?php 
$sum = 0;
$a = mt_rand(0,100);

for($x = 1;$x<=$a;$x++)
{

   $sum = $sum+$x ;
}   

echo $sum;
?>
</body>

</html>